{%extend name="Public:layout"/%}

{%block name="title"%}
    {%eq name="status" value="1"%}
        <h2 class="mb20">
            <div class="alert alert-success">
            <i class="icon"></i>
            <div class="alert-inner">{%$message%}</div>
        </div>
        </h2>
    {%else/%}
        <h2 class="mb20">
            <div class="alert alert-error">
            <i class="icon"></i>
            <div class="alert-inner">{%$error%}</div>
        </div>
        </h2>
    {%/eq%}
{%/block%}

{%block name="contents"%}
    <h2 class="mb20">你可以选择以下操作：</h2>
    <div style="margin-left: 50px;">
        {%notempty name="jumpUrl"%}
            {%volist name="jumpUrl" id="val"%}
                <a class="btn" href="{%$val[1]%}">{%$val[0]%}</a>&nbsp;
            {%/volist%}
        {%/notempty%}
        <a class="btn" href="javascript:history.back()">返回上一层</a>
    </div>
{%/block%}

{%block name="js"%}
<script type="text/javascript">
    ST.init();
</script>

{%notempty name="timeOut"%}
<script type="text/javascript">
$('<span style="font-size: 12px;"> {%$timeOut%}秒后自动跳转</span>').insertAfter($('div.alert-success'));
setTimeout("location.href = '{%$jumpUrl[0][1]%}'", parseInt('{%$timeOut%}000'));
</script>
{%/notempty%}
{%/block%}